package com.edu.neusoft.cookbook.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.edu.neusoft.cookbook.dto.RecipesDTO;
import com.edu.neusoft.cookbook.entity.Recipes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

/**
 * ClassName: RecipesMapper
 * Package: com.edu.neusoft.cookbook.mapper
 * Description:
 *
 * @Author b
 * @Create 2024/12/7 11:35
 * @Version 1.0
 */
@Mapper
public interface RecipesMapper extends BaseMapper<Recipes> {

    List<RecipesDTO> selectByPage(@Param("pageNum") int pageNum, @Param("pageSize") int pageSize);

    Recipes selectByPrimaryKey(Integer recipeId);

    List<Recipes> selectByRecipeIds(@Param("recipeIds") List<Integer> recipeIds);


}
